<?php
    header("Content-type: text/html; charset=utf-8");  
    date_default_timezone_set("PRC");
    // require_once 'inc/dbConn.php';
    $con = mysql_connect('localhost','root','root');
    mysql_select_db('hua',$con);
    mysql_set_charset("utf8");
    $page = $_REQUEST['page']*6;
    $sql = "select * from cont limit ".$page.",6";
    $result = mysql_query($sql,$con);
    while($rs = mysql_fetch_array($result)){
        $cont[] = $rs;
    }
    echo json_encode($cont);
?>